<?php
header("content-type:text/html;charset=utf-8");
include("../conn/conn.php");
$name=$_POST["name"];
$password=$_POST["pass"];
$sql="select * from tb_gly where account='".$name."'";
$result=mysqli_query($link,$sql);
if(mysqli_num_rows($result)>0){
	mysqli_query($link,"update tb_gly set password='".$password."' where account='".$name."'");
	echo("<script>alert('密码修改成功，请重新登陆！');window.location.href='htdl.php';</script>");
}else{
echo("<script>alert('密码修失败，请重新修改！');window.location.href='xgma.php';</script>");
}
?>